#pragma once
#include <iostream>
#include <fstream>
#include "worker.h"
#define FILENAME "employee.txt"
using namespace std;
class Manager
{
public:
    bool m_fileIsEmpty;
    int m_empnum;
    AbstractWorker** m_emparr;
public:
    Manager();
    ~Manager();
    void showMenu();
    void exitSystem();
    int getUserInput();
    void addEmployee();
    void displayEmployees();
    void modifyEmployee();
    void deleteEmployee();
    void searchEmployee();
    void sortEmployees();
    void clearEmployees();

    void save();
    int getEmpNum();
    int cheackEmpIsExist();
    void initEmp();
};
